import React, { Component } from 'react';
import { router } from 'umi';
import ProDetail from '@/pages/components/Problem/ProblemPage/ProDetail';

class Proble extends Component {
  onModifyData = data => {
    router.push(`/salarymanage/salaryview/detail?wageOrderInfoId=${data.busiId}`);
  };

  onViewDetails = data => {
    router.push(`/salarymanage/salaryview/detail?wageOrderInfoId=${data.busiId}`);
  };

  render() {
    return (
      <ProDetail
        onModifyData={this.onModifyData}
        onViewDetails={this.onViewDetails}
        isNotModify
        isNotFeedback
      />
    );
  }
}

export default Proble;
